// pages/extension/extension.js
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    banner:"../../common/img/Extension/banner.png",
    like:"../../common/img/Extension/like.png/",
    passageway: "../../common/img/Extension/passageway.png/",
    preview: "../../common/img/Extension/preview.png/",
    agent:"../../common/img/Extension/agent.png",
    materialImg1:"../../common/img/Extension/wechat.png",
    materialImg2: "../../common/img/Extension/friend.png",
    materialImg3: "../../common/img/Extension/weibo.png",
    materialImg4: "../../common/img/Extension/qq.png",
    more:"../../common/img/Extension/more.png",
    statistics: "../../common/img/Extension/statistics.png",
    treasure: "../../common/img/Extension/treasure.png",
    forum: "../../common/img/Extension/forum.png",
    showing: "../../common/img/Extension/showing.png",
    news: "../../common/img/Extension/new.png",
    userinfo:""
  },
  agentBtn:function(){
    
  },
  dataSta:function(){
    wx.navigateTo({
      url: '../dataSta/dataSta',
    })
  },
  noob:function(){
    wx.navigateTo({
      url: '../noob/noob'
    })
  },
   master: function () {
    wx.navigateTo({
      url: '../master/master'
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
      this.setData({
          userinfo: wx.getStorageSync('userInfo')
      })
    
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})